	var Branchesxb = function() {
		Branchesxb.prototype.lp11 = 'xbth/6447.shtml'; //北京
		Branchesxb.prototype.lp4403 = 'xbth/6448.shtml'; //深圳
		Branchesxb.prototype.lp3302 = 'xbth/6449.shtml'; //宁波
		Branchesxb.prototype.lp32 = 'xbth/6450.shtml'; //江苏
		Branchesxb.prototype.lp31 = 'xbth/6432.shtml'; //上海
		Branchesxb.prototype.lp33 = 'xbth/6433.shtml'; //浙江
		Branchesxb.prototype.lp51 = 'xbth/6434.shtml'; //四川
		Branchesxb.prototype.lp42 = 'xbth/6435.shtml'; //湖北
		Branchesxb.prototype.lp12 = 'xbth/6436.shtml'; //天津
		Branchesxb.prototype.lp44 = 'xbth/6437.shtml'; //广东
		Branchesxb.prototype.lp61 = 'xbth/6438.shtml'; //陕西
		Branchesxb.prototype.lp41 = 'xbth/6439.shtml'; //河南
		Branchesxb.prototype.lp36 = 'xbth/6440.shtml'; //江西
		Branchesxb.prototype.lp50 = 'xbth/6441.shtml'; //重庆
		Branchesxb.prototype.lp53 = 'xbth/6442.shtml'; //云南
		Branchesxb.prototype.lp35 = 'xbth/6443.shtml'; //福建
		Branchesxb.prototype.lp3702 = 'xbth/6444.shtml'; //青岛
		Branchesxb.prototype.lp21 = 'xbth/6445.shtml'; //辽宁
		Branchesxb.prototype.lp37 = 'xbth/6446.shtml'; //山东
		Branchesxb.prototype.lp23 = 'xbth/6417.shtml'; //黑龙江
		Branchesxb.prototype.lp2102 = 'xbth/6418.shtml'; //大连
		Branchesxb.prototype.lp13 = 'xbth/6419.shtml'; //河北
		Branchesxb.prototype.lp15 = 'xbth/6420.shtml'; //内蒙古
		Branchesxb.prototype.lp62 = 'xbth/6421.shtml'; //甘肃
		Branchesxb.prototype.lp34 = 'xbth/6422.shtml'; //安徽
		Branchesxb.prototype.lp14 = 'xbth/6423.shtml'; //山西
		Branchesxb.prototype.lp22 = 'xbth/6424.shtml'; //吉林
		Branchesxb.prototype.lp45 = 'xbth/6425.shtml'; //广西
		Branchesxb.prototype.lp43 = 'xbth/6426.shtml'; //湖南
		Branchesxb.prototype.lp64 = 'xbth/6427.shtml'; //宁夏
		Branchesxb.prototype.lp52 = 'xbth/6428.shtml'; //贵州
		Branchesxb.prototype.lp46 = 'xbth/6429.shtml'; //海南
		Branchesxb.prototype.lp65 = 'xbth/6430.shtml'; //新疆
		Branchesxb.prototype.lp3502 = 'xbth/6431.shtml'; //厦门
		
		Branchesxb.prototype.getLocal = function(code){
			return this["lp"+code];
		}
	}
	
	var Branches = function() {
		Branches.prototype.lp11 = 'xbtbth/14136.shtml'; //北京
		Branches.prototype.lp4403 = 'xbtbth/14137.shtml'; //深圳
		Branches.prototype.lp3302 = 'xbtbth/14138.shtml'; //宁波
		Branches.prototype.lp32 = 'xbtbth/14139.shtml'; //江苏
		Branches.prototype.lp31 = 'xbtbth/14121.shtml'; //上海
		Branches.prototype.lp33 = 'xbtbth/14122.shtml'; //浙江
		Branches.prototype.lp51 = 'xbtbth/14123.shtml'; //四川
		Branches.prototype.lp42 = 'xbtbth/14124.shtml'; //湖北
		Branches.prototype.lp12 = 'xbtbth/14125.shtml'; //天津
		Branches.prototype.lp44 = 'xbtbth/14126.shtml'; //广东
		Branches.prototype.lp61 = 'xbtbth/14127.shtml'; //陕西
		Branches.prototype.lp41 = 'xbtbth/14128.shtml'; //河南
		Branches.prototype.lp36 = 'xbtbth/14129.shtml'; //江西
		Branches.prototype.lp50 = 'xbtbth/14130.shtml'; //重庆
		Branches.prototype.lp53 = 'xbtbth/14131.shtml'; //云南
		Branches.prototype.lp35 = 'xbtbth/14132.shtml'; //福建
		Branches.prototype.lp3702 = 'xbtbth/14133.shtml'; //青岛
		Branches.prototype.lp21 = 'xbtbth/14134.shtml'; //辽宁
		Branches.prototype.lp37 = 'xbtbth/14135.shtml'; //山东
		Branches.prototype.lp23 = 'xbtbth/14106.shtml'; //黑龙江
		Branches.prototype.lp2102 = 'xbtbth/14107.shtml'; //大连
		Branches.prototype.lp13 = 'xbtbth/14108.shtml'; //河北
		Branches.prototype.lp15 = 'xbtbth/14109.shtml'; //内蒙古
		Branches.prototype.lp62 = 'xbtbth/14110.shtml'; //甘肃
		Branches.prototype.lp34 = 'xbtbth/14111.shtml'; //安徽
		Branches.prototype.lp14 = 'xbtbth/14112.shtml'; //山西
		Branches.prototype.lp22 = 'xbtbth/14113.shtml'; //吉林
		Branches.prototype.lp45 = 'xbtbth/14114.shtml'; //广西
		Branches.prototype.lp43 = 'xbtbth/14115.shtml'; //湖南
		Branches.prototype.lp64 = 'xbtbth/14116.shtml'; //宁夏
		Branches.prototype.lp52 = 'xbtbth/14117.shtml'; //贵州
		Branches.prototype.lp46 = 'xbtbth/14118.shtml'; //海南
		Branches.prototype.lp65 = 'xbtbth/14119.shtml'; //新疆
		Branches.prototype.lp3502 = 'xbtbth/14120.shtml'; //厦门
		
		Branches.prototype.getLocal = function(code){
			return this["lp"+code];
		}
	}
	
	/**以下为生产上生产地址*/
	var Branchessc = function() {
		Branchessc.prototype.lp11 = 'xbtbth/14959.shtml'; //北京
		Branchessc.prototype.lp4403 = 'xbtbth/14960.shtml'; //深圳
		Branchessc.prototype.lp3302 = 'xbtbth/14961.shtml'; //宁波
		Branchessc.prototype.lp32 = 'xbtbth/14962.shtml'; //江苏
		Branchessc.prototype.lp31 = 'xbtbth/14944.shtml'; //上海
		Branchessc.prototype.lp33 = 'xbtbth/14945.shtml'; //浙江
		Branchessc.prototype.lp51 = 'xbtbth/14946.shtml'; //四川
		Branchessc.prototype.lp42 = 'xbtbth/14947.shtml'; //湖北
		Branchessc.prototype.lp12 = 'xbtbth/14948.shtml'; //天津
		Branchessc.prototype.lp44 = 'xbtbth/14949.shtml'; //广东
		Branchessc.prototype.lp61 = 'xbtbth/14950.shtml'; //陕西
		Branchessc.prototype.lp41 = 'xbtbth/14951.shtml'; //河南
		Branchessc.prototype.lp36 = 'xbtbth/14952.shtml'; //江西
		Branchessc.prototype.lp50 = 'xbtbth/14953.shtml'; //重庆
		Branchessc.prototype.lp53 = 'xbtbth/14954.shtml'; //云南
		Branchessc.prototype.lp35 = 'xbtbth/14955.shtml'; //福建
		Branchessc.prototype.lp3702 = 'xbtbth/14956.shtml'; //青岛
		Branchessc.prototype.lp21 = 'xbtbth/14957.shtml'; //辽宁
		Branchessc.prototype.lp37 = 'xbtbth/14958.shtml'; //山东
		Branchessc.prototype.lp23 = 'xbtbth/14929.shtml'; //黑龙江
		Branchessc.prototype.lp2102 = 'xbtbth/14930.shtml'; //大连
		Branchessc.prototype.lp13 = 'xbtbth/14931.shtml'; //河北
		Branchessc.prototype.lp15 = 'xbtbth/14932.shtml'; //内蒙古
		Branchessc.prototype.lp62 = 'xbtbth/14933.shtml'; //甘肃
		Branchessc.prototype.lp34 = 'xbtbth/14934.shtml'; //安徽
		Branchessc.prototype.lp14 = 'xbtbth/14935.shtml'; //山西
		Branchessc.prototype.lp22 = 'xbtbth/14936.shtml'; //吉林
		Branchessc.prototype.lp45 = 'xbtbth/14937.shtml'; //广西
		Branchessc.prototype.lp43 = 'xbtbth/14938.shtml'; //湖南
		Branchessc.prototype.lp64 = 'xbtbth/14939.shtml'; //宁夏
		Branchessc.prototype.lp52 = 'xbtbth/14940.shtml'; //贵州
		Branchessc.prototype.lp46 = 'xbtbth/14941.shtml'; //海南
		Branchessc.prototype.lp65 = 'xbtbth/14942.shtml'; //新疆
		Branchessc.prototype.lp3502 = 'xbtbth/14943.shtml'; //厦门
		
		Branchessc.prototype.getLocal = function(code){
			return this["lp"+code];
		}
	}
	
	//快速报价特保数据
	var QuotePriceBranches = function() {
		QuotePriceBranches.prototype.lp11 = 'dbth/5764.shtml'; //北京
		QuotePriceBranches.prototype.lp4403 = 'dbth/5773.shtml'; //深圳
		QuotePriceBranches.prototype.lp3302 = 'dbth/5775.shtml'; //宁波
		QuotePriceBranches.prototype.lp32 = 'dbth/5776.shtml'; //江苏
		QuotePriceBranches.prototype.lp31 = 'dbth/5779.shtml'; //上海
		QuotePriceBranches.prototype.lp33 = 'dbth/5782.shtml'; //浙江
		QuotePriceBranches.prototype.lp51 = 'dbth/5783.shtml'; //四川
		QuotePriceBranches.prototype.lp42 = 'dbth/5785.shtml'; //湖北
		QuotePriceBranches.prototype.lp12 = 'dbth/5787.shtml'; //天津
		QuotePriceBranches.prototype.lp44 = 'dbth/5789.shtml'; //广东
		QuotePriceBranches.prototype.lp61 = 'dbth/5791.shtml'; //陕西
		QuotePriceBranches.prototype.lp41 = 'dbth/5792.shtml'; //河南
		QuotePriceBranches.prototype.lp36 = 'dbth/5793.shtml'; //江西
		QuotePriceBranches.prototype.lp50 = 'dbth/5796.shtml'; //重庆
		QuotePriceBranches.prototype.lp53 = 'dbth/5797.shtml'; //云南
		QuotePriceBranches.prototype.lp35 = 'dbth/5799.shtml'; //福建
		QuotePriceBranches.prototype.lp3702 = 'dbth/5801.shtml'; //青岛
		QuotePriceBranches.prototype.lp21 = 'dbth/5803.shtml'; //辽宁
		QuotePriceBranches.prototype.lp37 = 'dbth/5804.shtml'; //山东
		QuotePriceBranches.prototype.lp23 = 'dbth/5805.shtml'; //黑龙江
		QuotePriceBranches.prototype.lp2102 = 'dbth/5807.shtml'; //大连
		QuotePriceBranches.prototype.lp13 = 'dbth/5808.shtml'; //河北
		QuotePriceBranches.prototype.lp15 = 'dbth/5809.shtml'; //内蒙古
		QuotePriceBranches.prototype.lp62 = 'dbth/5810.shtml'; //甘肃
		QuotePriceBranches.prototype.lp34 = 'dbth/5811.shtml'; //安徽
		QuotePriceBranches.prototype.lp14 = 'dbth/5812.shtml'; //山西
		QuotePriceBranches.prototype.lp22 = 'dbth/5814.shtml'; //吉林
		QuotePriceBranches.prototype.lp45 = 'dbth/5815.shtml'; //广西
		QuotePriceBranches.prototype.lp43 = 'dbth/5816.shtml'; //湖南
		QuotePriceBranches.prototype.lp64 = 'dbth/5818.shtml'; //宁夏
		QuotePriceBranches.prototype.lp52 = 'dbth/5819.shtml'; //贵州
		QuotePriceBranches.prototype.lp46 = 'dbth/5820.shtml'; //海南
		QuotePriceBranches.prototype.lp65 = 'dbth/5821.shtml'; //新疆
		QuotePriceBranches.prototype.lp3502 = 'dbth/5823.shtml'; //厦门
		
		QuotePriceBranches.prototype.getLocal = function(code){
			return this["lp" + code];
		}
	}

	/**投保特惠按地区选择--新保**/
	function insuranceSpecial(){
		var comCode = $("#comCode").val();
		if (comCode){
			var proCode = comCode.substring(0,4);
			if (proCode == '3502'||proCode == '4403'||proCode == '3302'||proCode == '3702'||proCode == '2102'){
				proCode = proCode;
			}else{
				proCode = comCode.substring(0,2);
			}
//			var branches = new Branches();
			var branches = new Branchessc();//生产调用；
			var specialURL = branches.getLocal(proCode);
			if(specialURL){
				$("#toubaoIframe").attr("src", "http://www.95590.cn/" + specialURL);
			}
		}
	}
	//续保
	function insuranceSpecialxb(){
		var comCode = $("#comCode").val();
		if (comCode){
			var proCode = comCode.substring(0,4);
			if (proCode == '3502'||proCode == '4403'||proCode == '3302'||proCode == '3702'||proCode == '2102'){
				proCode = proCode;
			}else{
				proCode = comCode.substring(0,2);
			}
			var branches = new Branchesxb();
			var specialURL = branches.getLocal(proCode);
			if(specialURL){
				$("#toubaoIframe").attr("src", "http://www.95590.cn/" + specialURL);
			}
		}
	}
	
	/** 快速报保投保特惠按地区选择 */
	function quotePriceInsuranceSpecial(){
		var comCode = $("#comCode").val();
		if (comCode){
			var proCode = comCode.substring(0,4);
			if (proCode == '3502'||proCode == '4403'||proCode == '3302'||proCode == '3702'||proCode == '2102'){
				proCode = proCode;
			}else{
				proCode = comCode.substring(0,2);
			}
			var quoteBranches = new QuotePriceBranches();
			var specialURL = quoteBranches.getLocal(proCode);
			if(specialURL){
				$("#ifUrl").attr("src", "http://www.95590.cn/" + specialURL);
			}
		}
	}
	
	
	
